import UIForm from "../../AzraelFrameWork/RunTime/UI/UIForm";
import ccclass = cc._decorator.ccclass;
import property = cc._decorator.property;
import GameMainEntry from "../Base/GameMainEntry";
import {EventID} from "../Event/EventID";
import GameEventArgs from "../../AzraelFrameWork/src/Event/GameEventArgs";
import {ReferencePool} from "../../AzraelFrameWork/src/Base/ReferencePool/ReferencePool";
import {UIStruct} from "./UIStruct";
export class ChangeSceneAgrs extends GameEventArgs{
    static Create():ChangeSceneAgrs{
        return ReferencePool.Acquire(ChangeSceneAgrs);
    }

    Clear(): void {
    }

    Id(): number {
        return EventID.ChangeScene;
    }

}


@ccclass
export class UI_Start extends UIForm{

    @property(cc.Button)
    startBtn:cc.Button = null;
    @property(cc.Button)
    setttingBtn:cc.Button = null;
    @property(cc.Button)
    rankBtn:cc.Button = null;


    OnClose(isShutdown: boolean, userdata?): void {
        super.OnClose(isShutdown, userdata);
    }

    OnInit(serialId: number, uiFormAssetName: string, userData?): void {
        super.OnInit(serialId, uiFormAssetName, userData);
        this.SerialId = UIStruct.UI_Start;
    }

    OnOpen(userdata?): void {
        super.OnOpen(userdata);
    }

    OnUpdate(elapseSeconds: number, realElapseSeconds: number): void {
        super.OnUpdate(elapseSeconds, realElapseSeconds);
    }

    onClickChangescene(btn,data){
        GameMainEntry.Event.Fire(this,ChangeSceneAgrs.Create());
    }

    onClickSetting(btn,data){

    }

    onClickRank(btn,data){

    }


}